<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title></title>
  <script src="https://cdn.bootcss.com/react/16.4.0/umd/react.development.js"></script>
  <script src="https://cdn.bootcss.com/react-dom/16.4.0/umd/react-dom.development.js"></script>
  <script src="https://cdn.bootcss.com/babel-standalone/6.26.0/babel.min.js"></script>
</head>

<body>
  <div id="root">



  </div>
</body>

</html>

<script type="text/babel">
	// es5组件的写法,一个函数就是一个组件
	function Welcome(props) {
	  return (
			<h1>
				<p>姓名: {props.person.name}</p>
				<p>年龄: {props.person.age}</p>
			</h1>
		)
	}

	const person = {
		name: 'huruqing',
		age: 108
	}
	ReactDOM.render(
		<Welcome person={person} />,
		document.getElementById('root')
	)
</script>